package com.java.text;

public class TestEX15 {

	public static void main(String[] args) {
		test01();

	}

	private static void test01() {
		System.out.print("Now ");
		System.out.print("is");
		try {
			throw new NullPointerException("the ");
		} catch (NullPointerException e) {
			// 显示堆栈异常信息
			//e.printStackTrace();
			// 显示字符串的个数
			System.out.print("  " + e.getMessage());
		} finally {
			System.out.print("time.");
			System.out.println();
		}

	}
}
